package com.fg.pro.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fg.pro.trade.entity.TradeGoods;
import com.github.pagehelper.PageInfo;

import java.util.Date;
import java.util.Map;

/**
 * 商品(TradeGoods)表服务接口
 *
 * @author makejava
 * @since 2025-08-12 09:18:13
 */
public interface TradeGoodsService extends IService<TradeGoods> {

    PageInfo getPage(Integer pageNum, Integer pageSize, String goodsName);
    boolean refresh(Date date) throws InterruptedException;
    boolean refreshTradeGoodsByLock(Date date) throws InterruptedException;

    /**
     * 获取自定义编码
     * @return
     */
    Map<String, Long> getIdAndCode();
}

